package com.ruoyi.voucher.service.impl;

import com.ruoyi.voucher.domain.VoucherAttachment;
import com.ruoyi.voucher.mapper.VoucherAttachmentMapper;
import com.ruoyi.voucher.service.IVoucherAttachmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: qk
 * @create: 2025-02-27 16:49
 **/
@Service
public class IVoucherAttachmentServiceImpl implements IVoucherAttachmentService {

    @Autowired
     VoucherAttachmentMapper voucherAttachmentMapper;

    @Override
    public List<VoucherAttachment> selectVoucherAttachmentList(VoucherAttachment voucherAttachment) {
        return voucherAttachmentMapper.selectVoucherAttachmentList(voucherAttachment);
    }

    @Override
    public VoucherAttachment selectVoucherAttachmentByAttachmentId(Long attachmentId) {
        return voucherAttachmentMapper.selectVoucherAttachmentByAttachmentId(attachmentId);
    }

    @Override
    public int insertVoucherAttachment(VoucherAttachment voucherAttachment) {
        return  voucherAttachmentMapper.insertVoucherAttachment(voucherAttachment);
    }

    @Override
    public int updateVoucherAttachment(VoucherAttachment voucherAttachment) {
        return  voucherAttachmentMapper.updateVoucherAttachment(voucherAttachment);
    }

    @Override
    public int deleteVoucherAttachmentByAttachmentIds(Long[] attachmentIds) {
        return  voucherAttachmentMapper.deleteVoucherAttachmentByAttachmentIds(attachmentIds);
    }
}
